package com.ruoyi.abuwxapi;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.pangolin.bo.PangolinUserInfoBo;
import com.ruoyi.pangolin.service.IPangolinUserMarkService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author wanghao718
 * @version 1.00
 * @time 2023/1/22 17:21
 * @desc Action
 */
@RestController
@RequestMapping("/wxapi/pangolin/refer")
public class WxPangolinReferController {
    @Resource
    private IPangolinUserMarkService pangolinUserMarkService;

    /**
     * 用户登记
     *
     * @return
     */
    @GetMapping("mark")
    public AjaxResult markUserInfo(PangolinUserInfoBo pangolinUserInfo) {
        Boolean result = pangolinUserMarkService.markUserInfo(pangolinUserInfo);
        return AjaxResult.success("登记成功~", result);
    }
}
